package com.yuntian.service;


import com.yuntian.entity.AppUser;
import com.yuntian.mapper.AppUserMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class AppUserService {

    private final AppUserMapper appUserMapper;
    /**
     * 获取用户信息
     */
    public List<AppUser> getAppUser() {
        return appUserMapper.getAppUser();
    }

    /**
     * 保存用户信息
     */
    public void saveAppUser(AppUser appUser) {
        appUserMapper.insert(appUser);
    }

     /**
      * 更新用户信息
      */
    public void updateAppUser(AppUser appUser) {
        appUserMapper.update(appUser);
    }

     /**
      * 删除用户信息
      */
    public void deleteAppUser(Integer appUser) {
        appUserMapper.delete(appUser);
    }
}
